package com.ddwl.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/9/13 5:34
 */
public interface GateEnum {


    /**
     * 消息类型
     */
    @AllArgsConstructor
    @Getter
    enum MsgType {
        TEMP((byte) 0, "临时通知"),
        SYSTEM((byte) 1, "系统消息"),
        SOS((byte) 2, "救助消息"),
        PERSON((byte) 3, "个人消息"),
        ;

        private Byte code;
        private String name;
    }

    /**
     * 短信渠道
     */
    @AllArgsConstructor
    @Getter
    enum SmsEnum {
        ALIYUN("阿里云"),
        QCLOUD("腾讯云"),
        MOBSET("首艺"),
        MOBSET1("首艺");

        private String name;
    }

    @AllArgsConstructor
    @Getter
    enum DictionaryTag {
        TAG_STYLE("款式"),
        TAG_SIZE("尺码"),
        TAG_APP_SWITCH("App开关"),
        TAG_SYSTEM("系统设置"),
        TAG_PROFIT("分润配置"),
        TAG_SYSTEM_SHOP_AGENT_PROFIT("系统店铺代理商品分润"),
        TAG_UPGRADE_AGENT("升级代理"),

        ;
        private String name;
    }

    @AllArgsConstructor
    @Getter
    enum DictionaryField {
        SWITCH_MALL("商城", true),
        IOT_ENTER("多典守护入口", true),
        AMAP_KEY("高德地址Key", null),
        SHOP_JOIN_DIST("店铺入驻佣金开关", false),
        PROFIT_AGENT("代理商分润", 0.08),
        PROFIT_STORE("店铺分润", 0.4),
        /**
         * 系统店铺代理商品分润
         */
        SYSTEM_SHOP_PERSONAL_AGENT_PROFIT("系统店铺代理商品个代分润", 0.3),
        SYSTEM_SHOP_STORE_AGENT_PROFIT("系统店铺代理商品店代分润", 0.1),
        SYSTEM_SHOP_ZONE_AGENT_PROFIT("系统店铺代理商品区代分润", 0.08),

        CONSUMER_HOTLINE("客服热线", "19157818805"),
        SYSTEM_SHOP("系统店铺id", "1600559027438045184"),
        AUTO_REFUND("自动退款", true),
        DEVICE_CONN_DAYS("设备连续连接多少天可获得奖励", 10),
        CONN_REWARD("奖励金额", 5.00),
        ITEM_KEYWORD("商品推荐关键字", "五十八度"),
        SHOP_KEYWORD("商品推荐关键字", "五八马"),
        AGENT_COUPON_ID("发放券ID", "614fe9c93dffa74c9f5e08ae"),

        PERSONAL_AGENT_COST("升级个人代理费用","980"),
        STORE_AGENT_COST("升级店铺代理费用","1980"),

        PERSONAL_AGENT_PROFIT("发展个人代理上级分润","200"),
        STORE_AGENT_PROFIT("发展店铺代理上级分润","500"),

        PERSONAL_AGENT_DESC("个代权益描述",""),
        STORE_AGENT_DESC("店代权益描述",""),

        ;
        private String name;
        private Object defaultVal;
    }

    @AllArgsConstructor
    @Getter
    enum AppStatus {
        ONLINE((byte) 1, "上线"),
        OFFLINE((byte) 0, "下线"),
        ;
        private Byte code;
        private String name;
    }

    @AllArgsConstructor
    @Getter
    enum WxaPath {
        USER_WXA_CODE("wxaCodeUnlimit/%s.png", "用户无限小程序码路径"),
        SHOP_WXA_CODE("shop/wxaCodeUnlimit/%s.png", "店铺小程序码路径"),
        ITEM_WXA_CODE("wbm/item/wxa/%s.png", "商品小程序码路径"),
        ;

        private String path;
        private String desc;
    }

    @AllArgsConstructor
    @Getter
    enum WbmMinAppPage {
        SHOP_INDEX("pages/index/index", "店铺首页"),
        ITEM_INDEX("pages/product/product", "商品首页"),
        ;

        private String path;
        private String desc;
    }
}
